package zju.ccnt.oauth2.user.api;

import org.hibernate.validator.constraints.Email;

import javax.validation.constraints.NotNull;

/**
 * Created by zha on 14/11/5.
 */
public class ApiUser {


    /**
     * the unique email for a user
     */
    @NotNull
    @Email
    protected String email;

    @NotNull
    protected String name;

    private String id;

    public ApiUser(){}

    public ApiUser(String id, String email, String name){
        this.email = email;
        this.id = id;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
